﻿using yiCommerce.Core.Data;
using yiCommerce.Core.Domain.Addresses;

namespace yiCommerce.Service.Addresses
{
    public class AddressService:IAddressService
    {

        private IRepository<Address> _addressRepository;

        public AddressService(IRepository<Address> addressRepository)
        {
            _addressRepository = addressRepository;
        }

        public void InsertNewAddress(Address newAddress)
        {
            _addressRepository.Insert(newAddress);
        }
    }
}